package interpreter.bytecodes;

import interpreter.VirtualMachine;
import java.util.Vector;

/**
 *
 * @author Kristofer Selbekk
 */
public class DumpByteCode extends ByteCode {
    private String status;
    
    public void init(Vector<String> args) {
        status = args.get(0);
    }

    /**
     * Action: Decides the dump flag
     *
     * @param vm the Virtual Machine reference
     */
    public void exec(VirtualMachine vm) {
        vm.setDump( status );
    }

    public Object getArgs() {
        return status;
    }

}
